import request from '@/utils/request'

// 查询接收站列表
export function listReceiveStation(query) {
  return request({
    url: '/system/receivestation/list',
    method: 'get',
    params: query
  })
}

// 查询接收站详细
export function getReceiveStation(id) {
  return request({
    url: '/system/receivestation/' + id,
    method: 'get'
  })
}

// 新增接收站
export function addReceiveStation(data) {
  return request({
    url: '/system/receivestation',
    method: 'post',
    data: data
  })
}

// 修改接收站
export function updateReceiveStation(data) {
  return request({
    url: '/system/receivestation',
    method: 'put',
    data: data
  })
}

// 删除接收站
export function delReceiveStation(noticeId) {
  return request({
    url: '/system/receivestation/' + noticeId,
    method: 'delete'
  })
}